Pod::Spec.new do |nc|
    nc.name             = "ZZUI"
    nc.version          = "0.0.8"
    nc.summary          = "Rapid development for iOS"
    nc.homepage         = "https://gitee.com/goodlookingyoungman/ZZUI.git"
    nc.license          = { :type => "MIT", :file => "LICENSE" }
    nc.author           = { "WenyanZhang" => "782069614@qq.com" }
    nc.platform         = :ios, "9.0"
    nc.swift_version    = '4.2'
    nc.source           = { :git => "https://gitee.com/goodlookingyoungman/ZZUI.git", :tag => "v#{nc.version}" }
    
    nc.subspec "Bundle" do | component |
        component.source_files = "Sources/#{component.base_name}/NCUIBundle.swift"
        component.resource_bundle = { 'NCUIResources' => 'Sources/Bundle/*.xcassets' }
    end
    
    nc.subspec "Extension" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
    end
    
    nc.subspec "HUD" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Bundle"
        component.dependency "MBProgressHUD", "1.1.0"
    end
    
    nc.subspec "Calendar" do | component |
        component.source_files = "Sources/#{component.base_name}/**/*.{swift}"
        component.dependency "ZZUI/Bundle"
        component.dependency "ZZUI/Extension"
        component.dependency "SnapKit", "4.2.0"
    end
    
    nc.subspec "NumberButton" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Bundle"
        component.dependency "ZZUI/Extension"
    end
    
    nc.subspec "PopoverView" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Extension"
        component.dependency "SnapKit", "4.2.0"
    end
    
    nc.subspec "NCTextView" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Extension"
        component.dependency "SnapKit", "4.2.0"
    end
    
    nc.subspec "NCButton" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Extension"
        component.dependency "SnapKit", "4.2.0"
    end
    
    nc.subspec "NCFilterBox" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift,xib}"
        component.dependency "ZZUI/Extension"
        component.dependency "ZZUI/Bundle"
        component.dependency "SnapKit", "4.2.0"
        component.dependency "ZZUI/NCButton"
        component.dependency "ZZUI/SearchTextField"
    end
    
    nc.subspec "ScanSearch" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/HUD"
        component.dependency "ZZUI/Bundle"
        component.dependency "SnapKit", "4.2.0"
    end
    
    nc.subspec "SearchTextField" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "ZZUI/Bundle"
        component.dependency "ZZUI/Extension"
    end
    
    nc.subspec "PDF" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{h,m}"
    end
    
    nc.subspec "AnnularProgressView" do | component |
        component.source_files = "Sources/#{component.base_name}/*.{swift}"
        component.dependency "SnapKit", "4.2.0"
        component.dependency "ZZUI/Extension"
    end

    nc.subspec "PhotoBrowser" do | component |
        component.source_files = "Sources/#{component.base_name}/**/*.{swift}"
        component.resources = "Sources/#{component.base_name}/SKPhotoBrowser.bundle"
    end
    
end
